package o;

import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.hmf.annotation.ApiDefine;
import com.huawei.hmf.annotation.Singleton;
import java.util.HashSet;

@ApiDefine(uri = brf.class)
@Singleton
public class brx implements brf {
    private HashSet<String> ˋ = new HashSet();

    public <Node extends cie, Bean extends CardBean> void ॱ(@NonNull String str, Class<Node> cls, Class<Bean> cls2) {
        if (this.ˋ.contains(str)) {
            throw new IllegalArgumentException(str + " has registered");
        }
        cib.ˎ(str, cls);
        cib.ˊ(str, cls2);
    }

    public void ˋ(String str, Class<? extends Fragment> cls) {
        cjl.ˋ(str, cls);
    }

    public void ॱ(String str, Class<?> cls) {
        cfw.ˊ(str, (Class) cls);
    }
}
